<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" th:with="title='管理中心',active='home'">
<header th:replace="back/header::headerFragment(${title},${active})"></header>
<body class="fixed-left">
<div id="wrapper">
    <div th:replace="back/header::header-body"></div>
<!--    <div class="content-page">-->
<!--        <div class="content">-->
<!--            <div class="container">-->
<!--                <div class="row">-->
<!--                    <div class="col-sm-12">-->
<!--                        <h4 class="page-title">仪表盘</h4>-->
<!--                    </div>-->

<!--                    <div class="row">-->
<!--                        <div class="col-sm-6 col-lg-3">-->
<!--                            <div class="mini-stat clearfix bx-shadow bg-info">-->
<!--                                <span class="mini-stat-icon"><i class="fa fa-quote-right" aria-hidden="true"></i></span>-->
<!--                                <div class="mini-stat-info text-right">-->
<!--                                    发表了<span class="counter" th:text="${statistics.articles}"></span>篇文章-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                        <div class="col-sm-6 col-lg-3">-->
<!--                            <div class="mini-stat clearfix bg-purple bx-shadow">-->
<!--                                <span class="mini-stat-icon"><i class="fa fa-comments-o" aria-hidden="true"></i></span>-->
<!--                                <div class="mini-stat-info text-right">-->
<!--                                    收到了<span class="counter" th:text="${statistics.comments}"></span>条留言-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->

                    <div class="row">
                        <div class="col-md-4">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 class="panel-title">最新文章</h4>
                                </div>
                                <div class="panel-body">
                                    <ul class="list-group">
                                        <li class="list-group-item" th:each="article : ${articles}">
                                        <span class="badge badge-primary" th:text="${article.commentsNum}">
                                        </span>
                                        <a target="_blank" th:href="${commons.site_url('/article/')}+${article.id}"
                                             th:text="${article.title}"></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
<!--                        <div class="col-md-4">-->
<!--                            <div class="panel panel-default">-->
<!--                                <div class="panel-heading">-->
<!--                                    <h4 class="panel-title">最新留言</h4>-->
<!--                                </div>-->
<!--                                <div class="panel-body">-->
<!--                                    <div th:if="${comments.size()}==0">-->
<!--                                        <div class="alert alert-warning">-->
<!--                                            还没有收到留言.-->
<!--                                        </div>-->
<!--                                    </div>-->
<!--                                    <ul class="list-group" th:unless="${comments}==null and ${comments.size()}==0">-->
<!--                                        <li class="list-group-item" th:each="comment : ${comments}">-->
<!--                                            <th:block th:text="${comment.author}"/>于 <th:block th:text="${commons.dateFormat(comment.created)}"/>：-->
<!--                                                <a th:href="${commons.site_url('/article/')}+${comment.articleId}+'#comments'"-->
<!--                                                target="_blank" th:utext="${commons.article(comment.content)}"></a>-->
<!--                                        </li>-->
<!--                                    </ul>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                </div>-->
<!--                <div th:replace="back/footer :: footer-content"></div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
</div>
<div th:replace="back/footer :: footer"></div>
</body>
</html>